home *** CD-ROM | disk | FTP | other *** search
/ Professional Soft Collection 1.02 / Professional Soft Collection 1.02.iso / nc50 / nc_exit.do! / NC_EXIT.DOC
Text File  |  1995-02-07  |  3KB  |  77 lines

  1. NC_EXIT.COM          Program and documentation by Tony McNamara, Symantec
  2.  
  3. Purpose:
  4. ========
  5.     Unloads the Norton Commander without the use of a TSR program.
  6.     Optionally stuffs up to an 11 character command for processing after.
  7.  
  8. Version 2.0, 1 February 91
  9.     Added command-line string parameter support.
  10.  
  11. Syntax:
  12. =======
  13.     NC_EXIT
  14.     or
  15.     NC_EXIT <string> 
  16.     where <string> is up to 11 characters to be entered, as if typed at the
  17.     keyboard, after The Norton Commander has been exited.  
  18.  
  19. Compatibility:
  20. ==============
  21.     Unloads only the Norton Commander.  
  22.     Windows compatible.
  23.     Designed to be highly compatible.
  24.     May be rendered ineffective by some keyboard accelerators.
  25.  
  26. Usage:
  27. ======
  28.     Call from a batch file or a sequence of commands in a user menu.
  29.     No parameters are required.  If given, an ASCII string is used.
  30.     Due to the method, NC_Exit should be the last command called by the user 
  31.     menu or batch file.  Otherwise, the keyboard input may be accepted or reset
  32.     by another program.
  33.     IMPORTANT: Both NC_Exit and the batch file or executable called by 
  34.                <string> should be in your PATH.  Otherwise, these won't
  35.                work.  You probably should put them in your Norton Commander
  36.                directory, which should already be in your PATH.
  37.     
  38. EXAMPLES:
  39. =========
  40.         To run Windows from outside of the Commander, you could set
  41.     the user menu to:
  42.         W:      MS Windows
  43.                 nc_exit win
  44.     (assuming WIN.COM was in your path).  Then, whenever you chose Windows
  45.     at your user menu, you would leave the Commander and run MS Windows without
  46.     it.
  47.  
  48.         
  49.     To change the PATH in NC and have it stick (as opposed to merely staying
  50.     in effect for the duration of a batch file), you must exit NC, set the 
  51.     path, and restart NC.  This can now be automated by doing the following:
  52.  
  53.         1) Create a two line batch file, consisting of:
  54.                 PATH=<the path you wish set>
  55.                 NC
  56.  
  57.         2) Set your User Menu, Extension Files, or whatever batch file is
  58.            called by these to call NC_EXIT <batch file name>
  59.  
  60.         For example, call the following "SETNC.BAT"
  61.                 SET NORCMD=ON
  62.                 NC
  63.         and add the following to your User Menu:
  64.                 T:      Test NC_Exit
  65.                         NC_EXIT SETNC
  66.         Then select "T" from your user menu.  You should wind right back
  67.         in the Commander, but when you type "SET", you should see the
  68.         new environmental variable "NORCMD".  
  69.  
  70.  
  71. If you have any questions or problems, please ask in the NORUTL forum
  72. on CompuServe.  
  73.  
  74.         
  75.         
  76.  
  77.